import i18n from '../../i18n/i18n'
export const tableOption = {
  menuAlign: 'center',
  align: 'center',
  refreshBtn: true,
  menu: false,
  searchSize: 'mini',
  addBtn: false,
  searchBtn: false,
  column: [
    // 列表数据
    {
      label: i18n.t('coupon.shopName'),
      prop: 'shopName',
      searchLabelWidth: i18n.t('language') === 'language' ? 100 : 80,
      search: true
    },
    {
      label: i18n.t('coupon.productName'),
      prop: 'prodName',
      searchLabelWidth: i18n.t('language') === 'language' ? 120 : 80,
      search: true
    }, {
      label: i18n.t('discount.productPictures'),
      prop: 'pic',
      slot: true
    }, {
      label: i18n.t('distributionProdLog.commissionAmount'),
      width: 200,
      prop: 'incomeAmount'
    }, {
      label: i18n.t('distributionProdLog.distributor'),
      width: 200,
      prop: 'nickName',
      searchLabelWidth: i18n.t('language') === 'language' ? 100 : 80,
      search: true
    }, {
      label: i18n.t('users.phoneNumber'),
      width: 200,
      prop: 'userMobile',
      searchLabelWidth: i18n.t('language') === 'language' ? 120 : 80,
      search: true
    }, {
      width: 200,
      label: i18n.t('distributionProdLog.distributionStatus'),
      searchLabelWidth: i18n.t('language') === 'language' ? 140 : 80,
      search: true,
      type: 'select',
      prop: 'state',
      slot: true,
      dicData: [
        {
          label: i18n.t('distributionProdLog.pendingSettlement'),
          value: 1
        }, {
          label: i18n.t('distributionProdLog.alreadySettled'),
          value: 2
        }, {
          label: i18n.t('distributionProdLog.invalidOrder'),
          value: -1
        }
      ]
    }
  ]
}
